{% load static %}

<link rel="stylesheet" href="{% static 'polls/style.css' %}">
<link rel="stylesheet" href="{% static 'polls/tomjerry-theme.css' %}">

<div class="container tomjerry-theme">
    <h1>投票列表</h1>
    {% if latest_question_list %}
        <ul class="question-list">
        {% for question in latest_question_list %}
            <li>
                <a href="{% url 'polls:detail' question.id %}" class="question-link">
                    <span class="question-text">{{ question.question_text }}</span>
                    <span class="paw-icon">🐾</span>
                </a>
            </li>
        {% endfor %}
        </ul>
    {% else %}
        <p class="no-questions">目前没有可用的投票。</p>
    {% endif %}
</div>

<footer class="tomjerry-footer">
    <div class="footer-content">
        <div class="copyright">
            &copy; 2025 投票系统，保留所有权利。
        </div>
        <div class="footer-links">
            <a href="/">首页</a>
            <a href="/admin">管理后台</a>
            <a href="https://gitee.com/cdg6666/django">关于我们</a>
            <a href="https://gitee.com/cdg6666/django">联系方式</a>
        </div>
    </div>
</footer>